//定义分类相关的api接口函数
import request from '@/utils/request'

export const findAllCategory = () => {
    return request('/home/category/head','GET')
}

//请求商品分类的数据
export const findTopCategory = (id) => {
    return request('/category','get',{id})
}

//获取二级分类筛选条件数据 传入当前的路由的Id获取当前的数据
export const findSubCategoryFilte = (id) => {
    return request('/category/sub/filter','get',{id})
}

//商品筛选
export const findSubCategoryGoods = (params) => {
    return request('/category/goods/temporary', 'post', params)
}